/*
	Test context query functions.
*/

#include "Tests.h"

#ifdef _NOISE_UNIT_TEST

void ContextTest()
{
	const EContextQuery queries[] = {
		CONTEXT_VERSION,
		CONTEXT_FLOAT_POINT_TYPE_SIZE,
		CONTEXT_SHARED_WITH_GL,
		CONTEXT_SHARED_WITH_DX,
		CONTEXT_SUPPORTED_SOURCES_COUNT,
		CONTEXT_SUPPORTED_SOURCES,
		CONTEXT_SUPPORTED_PROGRAMS_COUNT,
		CONTEXT_SUPPORTED_PROGRAMS
	};

	int ivalues[256] = {0};

	for (uint i = 0; i < count_of(queries); ++i) {
		CHECK_N( nGetContextInteger( queries[i], ivalues, count_of(ivalues) ) );
	}
}

#endif	// _NOISE_UNIT_TEST